# -*- coding:utf-8 -*-

from bottle import route ,run

#单个路由
@route('/')
def index():
  return '<h1> 单个路由</h1>'



#多个路由绑定到一个方法
@route('')
@route('/login')
@route('/log')
def showroute():
  return '<h1>测试多个路由</h1>'


#动态路由
@route('/show/<name>')
def show(name):
  return '你好 ,%s ' % name

@route('/onshow/:name')
def onshow(name):
  return '你好, %s' % name


run(host='0.0.0.0',port='8090')


